/*
 * Copyright (c) United Binary LLC.  All rights reserved.
 * 
 * This code is licensed under the MIT License
 * 
 * SEE: http://harnessit.codeplex.com/license
 * 
 */
using System;

namespace UnitedBinary.Core.Diagnostics
{
	public class StackTraceEntry
	{
		private string method		= "";
		private string className	= "";
		private string file			= "";
		private string nameSpace	= "";
		private int fileLine		= -1;

		public StackTraceEntry(string method, string className, string file, string nameSpace, int line)
		{
			if (method == null)
			{
				method = "";
			}
			if (className == null)
			{
				className = "";
			}
			if (nameSpace == null)
			{
				nameSpace = "";
			}
			if (file == null)
			{
				file = "";
			}

			this.method		= method.Trim();
			this.className	= className.Trim();
			this.nameSpace	= nameSpace.Trim();
			this.file		= file.Trim();
			this.fileLine	= line;
		}

		public string Method
		{
			get
			{
				return method;
			}
		}

		public string ClassName
		{
			get
			{
				return className;
			}
		}

		public string File
		{
			get
			{
				return file;
			}
		}

		public string NameSpace
		{
			get
			{
				return nameSpace;
			}
		}

		public int Line
		{
			get
			{
				return fileLine;
			}
		}
	}
}
